home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / dcopy332.zip / DCEXTERN.C < prev    next >
C/C++ Source or Header  |  1991-10-13  |  4KB  |  68 lines

  1. /*************************************************************
  2.  *                                                           *
  3.  * Program DCOPY - physical sector to sector copy              *
  4.  * Copyright (c) 1986 Joerg Genius, Munich, West-Germany     *
  5.  *                                                           *
  6.  *************************************************************/
  7.  
  8. #include <stdio.h>
  9.  
  10. char *text[] = { "DCOPY %s Copyright (c) 1986-91 Joerg K. Genius, Munich\n",
  11.                  "                     Revision %s\n\n",
  12.                  "\007\nERROR-- Not enough memory - DCOPY aborted\n",
  13.                  "\007ERROR-- Drives must be different - DCOPY aborted\n",
  14.                  "\007ERROR-- Drives must be between A and %c: - DCOPY aborted\n",
  15.                  "\007ERROR-- Can't open '%s' for writing - DCOPY aborted\n",
  16.                  "\007ERROR-- Can't open '%s' for input - DCOPY aborted\n",
  17.                  "\007ERROR-- Invalid drive %c: - DCOPY aborted\n",
  18.                  "Disk type is %s.\n",
  19.                  "Copying %u blocks from drive %c: to file '%s' . . . ",
  20.                  "\007\n\nERROR-- Message #%d (read): '%s' - DCOPY aborted\n",
  21.                  "\007\n\nERROR-- Can't write to .IMG file - DCOPY aborted\n",
  22.                  "\r\007Done. Copied %u blocks from drive %c: to file '%s' !     \n\n",
  23.                  "Compression saved %ld bytes.\n\n",
  24.                  "\007ERROR-- Source and destination drive must be of same type - DCOPY aborted\n",
  25.                  "Copying %u blocks from drive %c: to %c: . . .",
  26.                  "\007\n\nERROR-- Message #%d (write): '%s' - DCOPY aborted\n",
  27.                  "\007\n\nERROR-- Message #%d (verify): '%s' - DCOPY aborted\n",
  28.                  "\007\n\nERROR-- Verification wrong - DCOPY aborted\n",
  29.                  "\r\007Done. Copied %u blocks from drive %c: to %c: !       \n",
  30.                  "\007ERROR-- Incompatible number of blocks - DCOPY aborted\n",
  31.                  "\007\n\nERROR-- Can't read .IMG file - DCOPY aborted\n",
  32.                  "Copying %u blocks from file '%s' to drive %c: . . . ",
  33.                  "\r\007Done. Copied %u blocks from file '%s' to drive %c: !     \n\n " ,
  34.                  "Verifying %u blocks from file '%s' with drive %c: . . .",
  35.                  "\r\007Done. Verified %u blocks from file '%s' with drive %c:!  \n\n",
  36.                  "Verifying %u blocks from drive %c: with drive %c: . . .",
  37.                  "\r\007Done. Verified %u blocks from drive %c: with drive %c:!  \n\n",
  38.                  "\r\007ERROR-- Drive %c: has an unsupported format - DCOPY aborted\n" };
  39.  
  40.  
  41. char *d_types[]  = { "Double Sided, High Density, 1.2 MByte",
  42.                      "Single Sided, Quad Density, RX50, 400 kByte",
  43.                      "Double Sided, Double Density, 360 kByte",
  44.                      "Double Sided, Double Density, 320 kByte",
  45.                      "Single Sided, Double Density, 180 kByte",
  46.                      "Single Sided, Double Density, 160 kByte",
  47.                      "Double Sides, Double Density, 3.5 Inch, 720 kByte",
  48.                      "Double Sides, High Density, 3.5 Inch, 1.44 MByte" };
  49.  
  50. char *err_text[] = { "Disk write protected",
  51.                           "Unknown unit",
  52.                           "Drive not ready",
  53.                           "Unknown command",
  54.                           "Data error",
  55.                           "Bad request structure length",
  56.                           "Seek error",
  57.                           "Unknown media type",
  58.                           "Sector not found",
  59.                           "Printer out of paper",
  60.                           "Write fault",
  61.                           "Read fault",
  62.                           "General failure" } ;
  63.  
  64. char *disk_buffer;
  65. unsigned int MAX_DRV;
  66. unsigned int blk_p_buffer;
  67. int disk_type;
  68.